//
//  PicCollectionViewCell.m
//  Interface
//
//  Created by Letme on 15-4-16.
//  Copyright (c) 2015年 zhenjiea. All rights reserved.
//

#import "PicCollectionViewCell.h"

@implementation PicCollectionViewCell
#warning
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    //NSLog(@"布局");
#warning
    self.myImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height)];
    [self.contentView addSubview:self.myImageView];
    
//    myImageView.userInteractionEnabled = YES;
//#warning 轻拍
//    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
//    [myImageView addGestureRecognizer:tap];
    
//    self.myImageView.userInteractionEnabled = YES;
//    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
//    [self.myImageView addGestureRecognizer:tap];
}

//- (void)tapAction:(uita)



//- (void)setMyImageView:(UIImageView *)myImageView
//{
//    NSURL *url = [NSURL URLWithString:self.str];
//    NSLog(@"oooooooooooooooooo%@", self.str);
//    [self.myImageView sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"User_Profiles_bg.png"]];
//}
#warning
- (void)setStr:(NSString *)str
{
#warning
    NSURL *url = [NSURL URLWithString:str];
    //NSLog(@"oooooooooooooooooo%@", self.str);
    [self.myImageView sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"06b1OOOPICf5.jpg"]];
}
@end
